<?php
echo<<<STOP
<link href="http://{$_SERVER['SERVER_NAME']}/css/grid.css" type=text/css rel=stylesheet>
<link href="http://{$_SERVER['SERVER_NAME']}/modules/social_media/css/default.css" type=text/css rel=stylesheet>


<script type="text/javascript" src="http://{$_SERVER['SERVER_NAME']}/modules/social_media/functions.js"></script>
STOP;
?>


<?php
echo<<<STOP
<div id=social_media style="display:none;overflow:hidden" class="{$class}">
	<div id=media_header>
    	<div id=twitter onclick="javascript:show_media(this.id);" class=twitter_tab_selected> Get Social
                <!--
    		<a href="http://twitter.com/#!/prclatest" target=new><img style="float:right;height:20px;cursor:pointer" src="/modules/social_media/images/twitter_prc.png"></a>
                <a href="http://www.facebook.com/pages/Peterborough-Regional-College/73604977730" target=new><img style="float:right;height:20px;cursor:pointer" src="/modules/social_media/images/facebook_prc.png"></a>
                -->
        </div>
    	<!--div id=facebook onclick="javascript:show_media(this.id);" class=facebook_tab_unselected>Facebook</div-->
    	<div id=news onclick="javascript:show_media(this.id);" class=news_tab_unselected>News and Events</div>
	</div>
	<div id=media_content>
	<div id=twitter_contents>
STOP;


include "twitter.php";
echo <<<STOP
	</div>
	<div id=facebook_contents>
STOP;
	
//include "facebook.php";

echo<<<STOP
 	</div>
 	<div id=news_contents style="overflow: auto;">
STOP;
include "news.php";
echo <<<STOP
 	</div>
	</div>
</div>

<script type="text/javascript">
loop_news_feed ();
show_media("news");
$("#social_media").fadeIn("slow");
</script>
STOP;
?>



